#!/usr/bin/python3


def fibonacci(n,fib={}):
    if n in fib:
       return fib[n]
    elif n<=1:
       fib[n]=1
    else:
       return fibonacci(n-1,fib) + fibonacci(n-2,fib)
    return fib[n]
while True:
    try:
        h= int(input('Please input a positive integer: '))
        if h>0:
            break
    except:
        pass

print(f"The Fibonacci numbers less than {h}:")
print("0",end=",")
for i in range(h):
    a=fibonacci(i)
    b=fibonacci(i+1)
    if a<=h and b>=h:
        print(a,end=".")
        break
    else:
        print(a,end=",")